package org.blogwu.learn.designpattern.chapter13.v1;

public class Main {

    private static final String departments[] = {"研发", "QA", "PM", "GG"};

    public static void main(String[] args) {
        for (int i = 0; i < 20; i++) {
            String department = departments[(int) (Math.random() * departments.length)];
            Manager manager = (Manager) EmployeeFactory.getManager(department);
        }
    }
}
